package com.example.javabasic.sample.bootstrap;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * Spring框架提供的接口，与@PostConstruct原理类似
 * 实现InitializingBean接口，重写afterPropertiesSet()方法
 *
 * @author: cph
 * @date: 2021/11/11 18:20
 */
@Slf4j
@Component
public class InitializingBeanTest implements InitializingBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        log.info(">>>InitializingBeanTest#afterPropertiesSet process...");
    }
}
